require './app.scss'
angular = require 'angular'
router = require 'angular-ui-router'
ngModule = angular.module 'app',[router]
ngModule.config ($stateProvider, $urlRouterProvider) ->
    $stateProvider
    .state('page1',
        url:'/page1'
        templateUrl:'page1.html'
        controller: 'page1Ctrl'
    )
    .state('page2',
        url:'/page2'
        templateUrl:'page2.html'
        controller: 'page2Ctrl'
    )
    $urlRouterProvider.otherwise '/page2'

require './controller/page1Ctrl.coffee'
require './controller/page2Ctrl.coffee'